package $2024_3_18.Demo2;

public class GraphTest {
    public static void main(String[] args) {
        Circle c = new Circle(3.1);
       double area2 = c.findArea2();
        System.out.println("圆形的面积为" + area2);
        Rectangle r = new Rectangle(5,3);
        double area1 = r.findArea1();
        System.out.println("矩形的面积为" + area1);
    }
}
